-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interview import dataset #1188
base: interview-copy-dataset
Are you sure you want to change the base?
Interview import dataset #1188
Conversation
|
||
import { checkStoreId } from '../utils/store' | ||
|
||
const useLsState = (path, initialValue, omit = []) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this localStorage
useLsState
hook just a re-implementation of what was already stored in localStorage before or is it a new state altogether??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before we had configActions
which are synced with the local storage. Here I bypass the redux store and just use a useState
hook which is synced to the local storage.
This PR adds the possibility to copy any dataset when creating a new dataset.